package com.xiaotao.service;

import com.nimbusds.jose.JOSEException;
import com.xiaotao.entity.Merchant;
import com.xiaotao.util.ResponseUtil;
import org.springframework.web.multipart.MultipartFile;

public interface MerchantService {
    ResponseUtil save(Merchant merchant);

    ResponseUtil login(Merchant merchant) throws JOSEException;

    ResponseUtil findAll(Integer pageNum,Integer pageSize);

    ResponseUtil delete(Integer id);

    ResponseUtil findById(Integer id);

    ResponseUtil uploadImage(MultipartFile file, String bucketName) throws Exception;

    ResponseUtil searchByKeyWord(String keyword,Integer status,Integer pageNum,Integer pageSize);

    ResponseUtil update(Merchant merchant);

    ResponseUtil findAll2();

    ResponseUtil getNearbyMerchants(Double userLon, Double userLat, Double radius, Long limit);

    ResponseUtil getDetail(Integer merchantId);


    ResponseUtil getLocationByAddress(String trim);
}
